package com.project.template.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.template.dto.EditPasswordDTO;
import com.project.template.dto.UserLoginDTO;
import com.project.template.dto.UserRegisterDTO;
import com.project.template.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.template.vo.SysUserLoginVO;

import java.util.Map;


public interface SysUserService extends IService<SysUser> {

   //分页查询
    Page<SysUser> page(Map<String, Object> query, Integer pageNum, Integer pageSize);
//注册
    void register(UserRegisterDTO userRegisterDTO);
//修改密码
    void editPassword(EditPasswordDTO dto);
//登录
    SysUserLoginVO login(UserLoginDTO userLoginDTO);
    void updatePassword(EditPasswordDTO editPasswordDTO);
//重置密码
    String resetPassword(Integer id);
}
